# import socket
#
# sk=socket.socket(type=socket.SOCK_DGRAM)
#
# server=('127.0.0.1',9001)
#
# sk.sendto(b'info',server)
#
#
# msg=sk.recv(1024)
# print(msg)



import socket

sk=socket.socket(type=socket.SOCK_DGRAM)
server=('127.0.0.1',9001)

sk.sendto('你也是'.encode('utf-8'),server)

msg=sk.recv(1024)
print(msg.decode('utf-8'))